@file:Suppress("UNCHECKED_CAST", "USELESS_CAST", "INAPPLICABLE_JVM_NAME", "UNUSED_ANONYMOUS_PARAMETER", "NAME_SHADOWING", "UNNECESSARY_NOT_NULL_ASSERTION")
package uni.UNIF42C880
import io.dcloud.uniapp.*
import io.dcloud.uniapp.extapi.*
import io.dcloud.uniapp.framework.*
import io.dcloud.uniapp.runtime.*
import io.dcloud.uniapp.vue.*
import io.dcloud.uniapp.vue.shared.*
import io.dcloud.uts.*
import io.dcloud.uts.Map
import io.dcloud.uts.Set
import io.dcloud.uts.UTSAndroid
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import io.dcloud.uniapp.extapi.exit as uni_exit
import io.dcloud.uniapp.extapi.showToast as uni_showToast
val runBlock1 = run {
    __uniConfig.getAppStyles = fun(): Map<String, Map<String, Map<String, Any>>> {
        return GenApp.styles
    }
}
var firstBackTime: Number = 0
open class GenApp : BaseApp {
    constructor(__ins: ComponentInternalInstance) : super(__ins) {
        onLaunch(fun(_: OnLaunchOptions) {
            console.log("App Launch")
        }
        , __ins)
        onAppShow(fun(_: OnShowOptions) {
            console.log("App Show")
        }
        , __ins)
        onAppHide(fun() {
            console.log("App Hide")
        }
        , __ins)
        onLastPageBackPress(fun() {
            console.log("App LastPageBackPress")
            if (firstBackTime == 0) {
                uni_showToast(ShowToastOptions(title = "再按一次退出应用", position = "bottom"))
                firstBackTime = Date.now()
                setTimeout(fun(){
                    firstBackTime = 0
                }, 2000)
            } else if (Date.now() - firstBackTime < 2000) {
                firstBackTime = Date.now()
                uni_exit(null)
            }
        }
        , __ins)
        onExit(fun() {
            console.log("App Exit")
        }
        , __ins)
    }
    companion object {
        val styles: Map<String, Map<String, Map<String, Any>>> by lazy {
            normalizeCssStyles(utsArrayOf(
                styles0
            ))
        }
        val styles0: Map<String, Map<String, Map<String, Any>>>
            get() {
                return utsMapOf("uni-row" to padStyleMapOf(utsMapOf("flexDirection" to "row")), "uni-column" to padStyleMapOf(utsMapOf("flexDirection" to "column")))
            }
    }
}
val GenAppClass = CreateVueAppComponent(GenApp::class.java, fun(): VueComponentOptions {
    return VueComponentOptions(type = "app", name = "", inheritAttrs = true, inject = Map(), props = Map(), propsNeedCastKeys = utsArrayOf(), emits = Map(), components = Map(), styles = GenApp.styles)
}
, fun(instance): GenApp {
    return GenApp(instance)
}
)
open class childImage (
    @JsonNotNull
    open var imageID: String,
    @JsonNotNull
    open var imagePath: String,
    @JsonNotNull
    open var dateTime: String,
    @JsonNotNull
    open var styleArray: UTSArray<Number>,
    @JsonNotNull
    open var seed: String,
    @JsonNotNull
    open var sourceImagePath: String,
) : UTSReactiveObject() {
    override fun __v_create(__v_isReadonly: Boolean, __v_isShallow: Boolean, __v_skip: Boolean): UTSReactiveObject {
        return childImageReactiveObject(this, __v_isReadonly, __v_isShallow, __v_skip)
    }
}
open class childImageReactiveObject : childImage, IUTSReactive<childImage> {
    override var __v_raw: childImage
    override var __v_isReadonly: Boolean
    override var __v_isShallow: Boolean
    override var __v_skip: Boolean
    constructor(__v_raw: childImage, __v_isReadonly: Boolean, __v_isShallow: Boolean, __v_skip: Boolean) : super(imageID = __v_raw.imageID, imagePath = __v_raw.imagePath, dateTime = __v_raw.dateTime, styleArray = __v_raw.styleArray, seed = __v_raw.seed, sourceImagePath = __v_raw.sourceImagePath) {
        this.__v_raw = __v_raw
        this.__v_isReadonly = __v_isReadonly
        this.__v_isShallow = __v_isShallow
        this.__v_skip = __v_skip
    }
    override fun __v_clone(__v_isReadonly: Boolean, __v_isShallow: Boolean, __v_skip: Boolean): childImageReactiveObject {
        return childImageReactiveObject(this.__v_raw, __v_isReadonly, __v_isShallow, __v_skip)
    }
    override var imageID: String
        get() {
            return trackReactiveGet(__v_raw, "imageID", __v_raw.imageID, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("imageID")) {
                return
            }
            val oldValue = __v_raw.imageID
            __v_raw.imageID = value
            triggerReactiveSet(__v_raw, "imageID", oldValue, value)
        }
    override var imagePath: String
        get() {
            return trackReactiveGet(__v_raw, "imagePath", __v_raw.imagePath, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("imagePath")) {
                return
            }
            val oldValue = __v_raw.imagePath
            __v_raw.imagePath = value
            triggerReactiveSet(__v_raw, "imagePath", oldValue, value)
        }
    override var dateTime: String
        get() {
            return trackReactiveGet(__v_raw, "dateTime", __v_raw.dateTime, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("dateTime")) {
                return
            }
            val oldValue = __v_raw.dateTime
            __v_raw.dateTime = value
            triggerReactiveSet(__v_raw, "dateTime", oldValue, value)
        }
    override var styleArray: UTSArray<Number>
        get() {
            return trackReactiveGet(__v_raw, "styleArray", __v_raw.styleArray, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("styleArray")) {
                return
            }
            val oldValue = __v_raw.styleArray
            __v_raw.styleArray = value
            triggerReactiveSet(__v_raw, "styleArray", oldValue, value)
        }
    override var seed: String
        get() {
            return trackReactiveGet(__v_raw, "seed", __v_raw.seed, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("seed")) {
                return
            }
            val oldValue = __v_raw.seed
            __v_raw.seed = value
            triggerReactiveSet(__v_raw, "seed", oldValue, value)
        }
    override var sourceImagePath: String
        get() {
            return trackReactiveGet(__v_raw, "sourceImagePath", __v_raw.sourceImagePath, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("sourceImagePath")) {
                return
            }
            val oldValue = __v_raw.sourceImagePath
            __v_raw.sourceImagePath = value
            triggerReactiveSet(__v_raw, "sourceImagePath", oldValue, value)
        }
}
open class ResultImage (
    @JsonNotNull
    open var imageID: String,
    @JsonNotNull
    open var imagePath: String,
    @JsonNotNull
    open var dateTime: String,
    @JsonNotNull
    open var children: UTSArray<childImage>,
) : UTSReactiveObject() {
    override fun __v_create(__v_isReadonly: Boolean, __v_isShallow: Boolean, __v_skip: Boolean): UTSReactiveObject {
        return ResultImageReactiveObject(this, __v_isReadonly, __v_isShallow, __v_skip)
    }
}
open class ResultImageReactiveObject : ResultImage, IUTSReactive<ResultImage> {
    override var __v_raw: ResultImage
    override var __v_isReadonly: Boolean
    override var __v_isShallow: Boolean
    override var __v_skip: Boolean
    constructor(__v_raw: ResultImage, __v_isReadonly: Boolean, __v_isShallow: Boolean, __v_skip: Boolean) : super(imageID = __v_raw.imageID, imagePath = __v_raw.imagePath, dateTime = __v_raw.dateTime, children = __v_raw.children) {
        this.__v_raw = __v_raw
        this.__v_isReadonly = __v_isReadonly
        this.__v_isShallow = __v_isShallow
        this.__v_skip = __v_skip
    }
    override fun __v_clone(__v_isReadonly: Boolean, __v_isShallow: Boolean, __v_skip: Boolean): ResultImageReactiveObject {
        return ResultImageReactiveObject(this.__v_raw, __v_isReadonly, __v_isShallow, __v_skip)
    }
    override var imageID: String
        get() {
            return trackReactiveGet(__v_raw, "imageID", __v_raw.imageID, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("imageID")) {
                return
            }
            val oldValue = __v_raw.imageID
            __v_raw.imageID = value
            triggerReactiveSet(__v_raw, "imageID", oldValue, value)
        }
    override var imagePath: String
        get() {
            return trackReactiveGet(__v_raw, "imagePath", __v_raw.imagePath, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("imagePath")) {
                return
            }
            val oldValue = __v_raw.imagePath
            __v_raw.imagePath = value
            triggerReactiveSet(__v_raw, "imagePath", oldValue, value)
        }
    override var dateTime: String
        get() {
            return trackReactiveGet(__v_raw, "dateTime", __v_raw.dateTime, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("dateTime")) {
                return
            }
            val oldValue = __v_raw.dateTime
            __v_raw.dateTime = value
            triggerReactiveSet(__v_raw, "dateTime", oldValue, value)
        }
    override var children: UTSArray<childImage>
        get() {
            return trackReactiveGet(__v_raw, "children", __v_raw.children, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("children")) {
                return
            }
            val oldValue = __v_raw.children
            __v_raw.children = value
            triggerReactiveSet(__v_raw, "children", oldValue, value)
        }
}
val GenPagesIndexIndexClass = CreateVueComponent(GenPagesIndexIndex::class.java, fun(): VueComponentOptions {
    return VueComponentOptions(type = "page", name = "", inheritAttrs = GenPagesIndexIndex.inheritAttrs, inject = GenPagesIndexIndex.inject, props = GenPagesIndexIndex.props, propsNeedCastKeys = GenPagesIndexIndex.propsNeedCastKeys, emits = GenPagesIndexIndex.emits, components = GenPagesIndexIndex.components, styles = GenPagesIndexIndex.styles)
}
, fun(instance, renderer): GenPagesIndexIndex {
    return GenPagesIndexIndex(instance, renderer)
}
)
val GenPagesCameraCameraClass = CreateVueComponent(GenPagesCameraCamera::class.java, fun(): VueComponentOptions {
    return VueComponentOptions(type = "page", name = "", inheritAttrs = GenPagesCameraCamera.inheritAttrs, inject = GenPagesCameraCamera.inject, props = GenPagesCameraCamera.props, propsNeedCastKeys = GenPagesCameraCamera.propsNeedCastKeys, emits = GenPagesCameraCamera.emits, components = GenPagesCameraCamera.components, styles = GenPagesCameraCamera.styles)
}
, fun(instance, renderer): GenPagesCameraCamera {
    return GenPagesCameraCamera(instance, renderer)
}
)
val type = utsArrayOf<UTSJSONObject>(object : UTSJSONObject() {
    var name = "室外"
    var value = "landscape"
}, object : UTSJSONObject() {
    var name = "室内"
    var value = "Interior design"
})
val styles = utsArrayOf<UTSJSONObject>(object : UTSJSONObject() {
    var name = "照片"
    var value = "realistic photo"
}, object : UTSJSONObject() {
    var name = "效果图"
    var value = "architeture rendering"
}, object : UTSJSONObject() {
    var name = "水彩"
    var value = "watercolor pencil"
})
val skytype = utsArrayOf<UTSJSONObject>(object : UTSJSONObject() {
    var name = "晴天"
    var value = "sunny day"
}, object : UTSJSONObject() {
    var name = "多云"
    var value = "cloudy day"
}, object : UTSJSONObject() {
    var name = "黄昏"
    var value = "sunset"
}, object : UTSJSONObject() {
    var name = "夜晚"
    var value = "night scene hyper galaxy"
})
val background = utsArrayOf<UTSJSONObject>(object : UTSJSONObject() {
    var name = "森林"
    var value = "distant forests"
}, object : UTSJSONObject() {
    var name = "山地"
    var value = "distant mountains"
}, object : UTSJSONObject() {
    var name = "城市"
    var value = "distant urban lanscape"
})
val buildingstyles = utsArrayOf<UTSJSONObject>(object : UTSJSONObject() {
    var name = "现代"
    var value = "Modernism  style"
}, object : UTSJSONObject() {
    var name = "极简"
    var value = "Minimalism New Pave  style"
}, object : UTSJSONObject() {
    var name = "功能主义"
    var value = "Functionalism  style"
}, object : UTSJSONObject() {
    var name = "砌块式"
    var value = "Brickwork  style"
}, object : UTSJSONObject() {
    var name = "水晶宫"
    var value = "Crystal Palace style"
}, object : UTSJSONObject() {
    var name = "高科技"
    var value = "High-tech and Pompidou style"
})
val buildingfunctions = utsArrayOf<UTSJSONObject>(object : UTSJSONObject() {
    var name = "办公楼"
    var value = "Office building"
}, object : UTSJSONObject() {
    var name = "住宅"
    var value = "residence building"
}, object : UTSJSONObject() {
    var name = "商业中心"
    var value = "commercial centre building"
}, object : UTSJSONObject() {
    var name = "摩天大楼"
    var value = "skyscraper"
}, object : UTSJSONObject() {
    var name = "博物馆"
    var value = "museum building"
}, object : UTSJSONObject() {
    var name = "医院门诊楼"
    var value = "Hospital Outpatient Building"
}, object : UTSJSONObject() {
    var name = "教学楼"
    var value = "teaching building"
}, object : UTSJSONObject() {
    var name = "宾馆"
    var value = "hotel building"
})
val foreground = utsArrayOf<UTSJSONObject>(object : UTSJSONObject() {
    var name = "广场"
    var value = "An small parking lot with a mix of vehicles and cars"
}, object : UTSJSONObject() {
    var name = "庭院"
    var value = "An  courtyard with Courtyard table, chair, and umbrella combination,People resting"
}, object : UTSJSONObject() {
    var name = "街区"
    var value = "An big road with crowd walking on it"
}, object : UTSJSONObject() {
    var name = "花草地"
    var value = "An meadow with grass,trees and flowers"
})
val `default`: UTSJSONObject = UTSJSONObject(Map<String, Any?>(utsArrayOf(
    utsArrayOf(
        "type",
        type
    ),
    utsArrayOf(
        "styles",
        styles
    ),
    utsArrayOf(
        "skytype",
        skytype
    ),
    utsArrayOf(
        "background",
        background
    ),
    utsArrayOf(
        "buildingstyles",
        buildingstyles
    ),
    utsArrayOf(
        "buildingfunctions",
        buildingfunctions
    ),
    utsArrayOf(
        "foreground",
        foreground
    )
)))
val GenPagesEditEditClass = CreateVueComponent(GenPagesEditEdit::class.java, fun(): VueComponentOptions {
    return VueComponentOptions(type = "page", name = "", inheritAttrs = GenPagesEditEdit.inheritAttrs, inject = GenPagesEditEdit.inject, props = GenPagesEditEdit.props, propsNeedCastKeys = GenPagesEditEdit.propsNeedCastKeys, emits = GenPagesEditEdit.emits, components = GenPagesEditEdit.components, styles = GenPagesEditEdit.styles)
}
, fun(instance, renderer): GenPagesEditEdit {
    return GenPagesEditEdit(instance, renderer)
}
)
open class childImage1 (
    @JsonNotNull
    open var imageID: String,
    @JsonNotNull
    open var imagePath: String,
    @JsonNotNull
    open var dateTime: String,
    @JsonNotNull
    open var styleArray: UTSArray<Number>,
    @JsonNotNull
    open var seed: String,
    @JsonNotNull
    open var sourceImagePath: String,
) : UTSReactiveObject() {
    override fun __v_create(__v_isReadonly: Boolean, __v_isShallow: Boolean, __v_skip: Boolean): UTSReactiveObject {
        return childImage1ReactiveObject(this, __v_isReadonly, __v_isShallow, __v_skip)
    }
}
open class childImage1ReactiveObject : childImage1, IUTSReactive<childImage1> {
    override var __v_raw: childImage1
    override var __v_isReadonly: Boolean
    override var __v_isShallow: Boolean
    override var __v_skip: Boolean
    constructor(__v_raw: childImage1, __v_isReadonly: Boolean, __v_isShallow: Boolean, __v_skip: Boolean) : super(imageID = __v_raw.imageID, imagePath = __v_raw.imagePath, dateTime = __v_raw.dateTime, styleArray = __v_raw.styleArray, seed = __v_raw.seed, sourceImagePath = __v_raw.sourceImagePath) {
        this.__v_raw = __v_raw
        this.__v_isReadonly = __v_isReadonly
        this.__v_isShallow = __v_isShallow
        this.__v_skip = __v_skip
    }
    override fun __v_clone(__v_isReadonly: Boolean, __v_isShallow: Boolean, __v_skip: Boolean): childImage1ReactiveObject {
        return childImage1ReactiveObject(this.__v_raw, __v_isReadonly, __v_isShallow, __v_skip)
    }
    override var imageID: String
        get() {
            return trackReactiveGet(__v_raw, "imageID", __v_raw.imageID, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("imageID")) {
                return
            }
            val oldValue = __v_raw.imageID
            __v_raw.imageID = value
            triggerReactiveSet(__v_raw, "imageID", oldValue, value)
        }
    override var imagePath: String
        get() {
            return trackReactiveGet(__v_raw, "imagePath", __v_raw.imagePath, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("imagePath")) {
                return
            }
            val oldValue = __v_raw.imagePath
            __v_raw.imagePath = value
            triggerReactiveSet(__v_raw, "imagePath", oldValue, value)
        }
    override var dateTime: String
        get() {
            return trackReactiveGet(__v_raw, "dateTime", __v_raw.dateTime, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("dateTime")) {
                return
            }
            val oldValue = __v_raw.dateTime
            __v_raw.dateTime = value
            triggerReactiveSet(__v_raw, "dateTime", oldValue, value)
        }
    override var styleArray: UTSArray<Number>
        get() {
            return trackReactiveGet(__v_raw, "styleArray", __v_raw.styleArray, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("styleArray")) {
                return
            }
            val oldValue = __v_raw.styleArray
            __v_raw.styleArray = value
            triggerReactiveSet(__v_raw, "styleArray", oldValue, value)
        }
    override var seed: String
        get() {
            return trackReactiveGet(__v_raw, "seed", __v_raw.seed, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("seed")) {
                return
            }
            val oldValue = __v_raw.seed
            __v_raw.seed = value
            triggerReactiveSet(__v_raw, "seed", oldValue, value)
        }
    override var sourceImagePath: String
        get() {
            return trackReactiveGet(__v_raw, "sourceImagePath", __v_raw.sourceImagePath, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("sourceImagePath")) {
                return
            }
            val oldValue = __v_raw.sourceImagePath
            __v_raw.sourceImagePath = value
            triggerReactiveSet(__v_raw, "sourceImagePath", oldValue, value)
        }
}
open class ResultImage1 (
    @JsonNotNull
    open var imageID: String,
    @JsonNotNull
    open var imagePath: String,
    @JsonNotNull
    open var dateTime: String,
    @JsonNotNull
    open var children: UTSArray<childImage1>,
) : UTSReactiveObject() {
    override fun __v_create(__v_isReadonly: Boolean, __v_isShallow: Boolean, __v_skip: Boolean): UTSReactiveObject {
        return ResultImage1ReactiveObject(this, __v_isReadonly, __v_isShallow, __v_skip)
    }
}
open class ResultImage1ReactiveObject : ResultImage1, IUTSReactive<ResultImage1> {
    override var __v_raw: ResultImage1
    override var __v_isReadonly: Boolean
    override var __v_isShallow: Boolean
    override var __v_skip: Boolean
    constructor(__v_raw: ResultImage1, __v_isReadonly: Boolean, __v_isShallow: Boolean, __v_skip: Boolean) : super(imageID = __v_raw.imageID, imagePath = __v_raw.imagePath, dateTime = __v_raw.dateTime, children = __v_raw.children) {
        this.__v_raw = __v_raw
        this.__v_isReadonly = __v_isReadonly
        this.__v_isShallow = __v_isShallow
        this.__v_skip = __v_skip
    }
    override fun __v_clone(__v_isReadonly: Boolean, __v_isShallow: Boolean, __v_skip: Boolean): ResultImage1ReactiveObject {
        return ResultImage1ReactiveObject(this.__v_raw, __v_isReadonly, __v_isShallow, __v_skip)
    }
    override var imageID: String
        get() {
            return trackReactiveGet(__v_raw, "imageID", __v_raw.imageID, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("imageID")) {
                return
            }
            val oldValue = __v_raw.imageID
            __v_raw.imageID = value
            triggerReactiveSet(__v_raw, "imageID", oldValue, value)
        }
    override var imagePath: String
        get() {
            return trackReactiveGet(__v_raw, "imagePath", __v_raw.imagePath, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("imagePath")) {
                return
            }
            val oldValue = __v_raw.imagePath
            __v_raw.imagePath = value
            triggerReactiveSet(__v_raw, "imagePath", oldValue, value)
        }
    override var dateTime: String
        get() {
            return trackReactiveGet(__v_raw, "dateTime", __v_raw.dateTime, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("dateTime")) {
                return
            }
            val oldValue = __v_raw.dateTime
            __v_raw.dateTime = value
            triggerReactiveSet(__v_raw, "dateTime", oldValue, value)
        }
    override var children: UTSArray<childImage1>
        get() {
            return trackReactiveGet(__v_raw, "children", __v_raw.children, this.__v_isReadonly, this.__v_isShallow)
        }
        set(value) {
            if (!this.__v_canSet("children")) {
                return
            }
            val oldValue = __v_raw.children
            __v_raw.children = value
            triggerReactiveSet(__v_raw, "children", oldValue, value)
        }
}
val GenPagesResultResultClass = CreateVueComponent(GenPagesResultResult::class.java, fun(): VueComponentOptions {
    return VueComponentOptions(type = "page", name = "", inheritAttrs = GenPagesResultResult.inheritAttrs, inject = GenPagesResultResult.inject, props = GenPagesResultResult.props, propsNeedCastKeys = GenPagesResultResult.propsNeedCastKeys, emits = GenPagesResultResult.emits, components = GenPagesResultResult.components, styles = GenPagesResultResult.styles)
}
, fun(instance, renderer): GenPagesResultResult {
    return GenPagesResultResult(instance, renderer)
}
)
open class ComfySetting (
    @JsonNotNull
    open var useProxyServer: Boolean = false,
    @JsonNotNull
    open var proxyServerAddress: String,
    @JsonNotNull
    open var proxyServerUsername: String,
    @JsonNotNull
    open var proxyServerPassword: String,
    @JsonNotNull
    open var serverAddress: String,
    @JsonNotNull
    open var isConnected: Boolean = false,
    @JsonNotNull
    open var imageQualityIndex: Number,
    @JsonNotNull
    open var autoSave: Boolean = false,
) : UTSObject()
val GenPagesSettingsSettingsClass = CreateVueComponent(GenPagesSettingsSettings::class.java, fun(): VueComponentOptions {
    return VueComponentOptions(type = "page", name = "", inheritAttrs = GenPagesSettingsSettings.inheritAttrs, inject = GenPagesSettingsSettings.inject, props = GenPagesSettingsSettings.props, propsNeedCastKeys = GenPagesSettingsSettings.propsNeedCastKeys, emits = GenPagesSettingsSettings.emits, components = GenPagesSettingsSettings.components, styles = GenPagesSettingsSettings.styles)
}
, fun(instance, renderer): GenPagesSettingsSettings {
    return GenPagesSettingsSettings(instance, renderer)
}
)
fun createApp(): UTSJSONObject {
    val app = createSSRApp(GenAppClass)
    return UTSJSONObject(Map<String, Any?>(utsArrayOf(
        utsArrayOf(
            "app",
            app
        )
    )))
}
fun main(app: IApp) {
    definePageRoutes()
    defineAppConfig()
    (createApp()["app"] as VueApp).mount(app, GenUniApp())
}
open class UniAppConfig : io.dcloud.uniapp.appframe.AppConfig {
    override var name: String = "ComfyUI-Mobile"
    override var appid: String = "__UNI__F42C880"
    override var versionName: String = "1.0.0"
    override var versionCode: String = "100"
    override var uniCompilerVersion: String = "4.66"
    constructor() : super() {}
}
fun definePageRoutes() {
    __uniRoutes.push(UniPageRoute(path = "pages/index/index", component = GenPagesIndexIndexClass, meta = UniPageMeta(isQuit = true), style = utsMapOf("navigationBarTitleText" to "AI拍照生图")))
    __uniRoutes.push(UniPageRoute(path = "pages/camera/camera", component = GenPagesCameraCameraClass, meta = UniPageMeta(isQuit = false), style = utsMapOf("navigationBarTitleText" to "拍照", "navigationStyle" to "custom")))
    __uniRoutes.push(UniPageRoute(path = "pages/edit/edit", component = GenPagesEditEditClass, meta = UniPageMeta(isQuit = false), style = utsMapOf("navigationBarTitleText" to "生成图片")))
    __uniRoutes.push(UniPageRoute(path = "pages/result/result", component = GenPagesResultResultClass, meta = UniPageMeta(isQuit = false), style = utsMapOf("navigationBarTitleText" to "结果查看")))
    __uniRoutes.push(UniPageRoute(path = "pages/settings/settings", component = GenPagesSettingsSettingsClass, meta = UniPageMeta(isQuit = false), style = utsMapOf("navigationBarTitleText" to "设置")))
}
val __uniTabBar: Map<String, Any?>? = utsMapOf("color" to "#7A7E83", "selectedColor" to "#007AFF", "borderStyle" to "black", "backgroundColor" to "#FFFFFF", "list" to utsArrayOf(
    utsMapOf("pagePath" to "pages/index/index", "text" to "画廊"),
    utsMapOf("pagePath" to "pages/camera/camera", "text" to "拍照"),
    utsMapOf("pagePath" to "pages/settings/settings", "text" to "设置")
))
val __uniLaunchPage: Map<String, Any?> = utsMapOf("url" to "pages/index/index", "style" to utsMapOf("navigationBarTitleText" to "AI拍照生图"))
fun defineAppConfig() {
    __uniConfig.entryPagePath = "/pages/index/index"
    __uniConfig.globalStyle = utsMapOf("navigationBarTextStyle" to "white", "navigationBarTitleText" to "AI拍照生图", "navigationBarBackgroundColor" to "#007AFF", "backgroundColor" to "#F8F8F8")
    __uniConfig.getTabBarConfig = fun(): Map<String, Any>? {
        return utsMapOf("color" to "#7A7E83", "selectedColor" to "#007AFF", "borderStyle" to "black", "backgroundColor" to "#FFFFFF", "list" to utsArrayOf(
            utsMapOf("pagePath" to "pages/index/index", "text" to "画廊"),
            utsMapOf("pagePath" to "pages/camera/camera", "text" to "拍照"),
            utsMapOf("pagePath" to "pages/settings/settings", "text" to "设置")
        ))
    }
    __uniConfig.tabBar = __uniConfig.getTabBarConfig()
    __uniConfig.conditionUrl = ""
    __uniConfig.uniIdRouter = utsMapOf()
    __uniConfig.ready = true
}
open class GenUniApp : UniAppImpl() {
    open val vm: GenApp?
        get() {
            return getAppVm() as GenApp?
        }
    open val `$vm`: GenApp?
        get() {
            return getAppVm() as GenApp?
        }
}
fun getApp(): GenUniApp {
    return getUniApp() as GenUniApp
}
